
package com.fis.mca.persistence;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for mcaSmsCommand complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="mcaSmsCommand">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="appCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="code" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="commandId" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         &lt;element name="mcaAction" type="{http://command.mca.fis.com/}mcaAction" minOccurs="0"/>
 *         &lt;element name="mcaPackage" type="{http://command.mca.fis.com/}mcaPackage" minOccurs="0"/>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "mcaSmsCommand", propOrder = {
    "appCode",
    "code",
    "commandId",
    "mcaAction",
    "mcaPackage",
    "name",
    "status"
})
public class McaSmsCommand  {

    protected String appCode;
    protected String code;
    protected long commandId;
    protected McaAction mcaAction;
    protected McaPackage mcaPackage;
    protected String name;
    protected String status;
    transient protected McaSmsCommand commandParam;

    /**
     * Gets the value of the appCode property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAppCode() {
        return appCode;
    }

    /**
     * Sets the value of the appCode property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAppCode(String value) {
        this.appCode = value.trim().toUpperCase();
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value.trim().toUpperCase();
    }

    /**
     * Gets the value of the commandId property.
     * 
     */
    public long getCommandId() {
        return commandId;
    }

    /**
     * Sets the value of the commandId property.
     * 
     */
    public void setCommandId(long value) {
        this.commandId = value;
    }

    /**
     * Gets the value of the mcaAction property.
     * 
     * @return
     *     possible object is
     *     {@link McaAction }
     *     
     */
    public McaAction getMcaAction() {
        return mcaAction;
    }

    /**
     * Sets the value of the mcaAction property.
     * 
     * @param value
     *     allowed object is
     *     {@link McaAction }
     *     
     */
    public void setMcaAction(McaAction value) {
        this.mcaAction = value;
    }

    /**
     * Gets the value of the mcaPackage property.
     * 
     * @return
     *     possible object is
     *     {@link McaPackage }
     *     
     */
    public McaPackage getMcaPackage() {
        return mcaPackage;
    }

    /**
     * Sets the value of the mcaPackage property.
     * 
     * @param value
     *     allowed object is
     *     {@link McaPackage }
     *     
     */
    public void setMcaPackage(McaPackage value) {
        this.mcaPackage = value;
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setName(String value) {
        this.name = value.trim();
    }

    /**
     * Gets the value of the status property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getStatus() {
        return status;
    }

    public McaSmsCommand getCommandParam()
	{
		return commandParam;
	}

	public void setCommandParam(McaSmsCommand commandParam)
	{
		this.commandParam = commandParam;
	}

	/**
     * Sets the value of the status property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setStatus(String value) {
        this.status = value.trim();
    }
    @Override
    public String toString()
    {
    	return this.code+"-"+this.name;
    }

	
}
